﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;

namespace ServerService
{
    public class myCompare : IComparer<Object[]>
    {


        #region IComparer<object[]> Members

        int IComparer<object[]>.Compare(object[] x, object[] y)
        {
            if (Convert.ToDateTime(x[2]) > Convert.ToDateTime(y[2]))
                return 1;
            else if (Convert.ToDateTime(x[2]) < Convert.ToDateTime(y[2]))
                return -1;
            else
                return 0;
        }

        #endregion
    }
}
